package ai.people.netmon.telegram.service;

import ai.people.netmon.framework.domain.telegram.vo.account.BusinessLeadsAccount;
import ai.people.netmon.framework.model.request.PageKeyWordsRequest;
import ai.people.netmon.framework.model.response.PageResponse;
import ai.people.netmon.telegram.domain.request.SearchAccountChannelRequest;

/**
 * 帐户服务
 *
 * @author yuanqinglong
 * @date 2022/1/21 10:56
 */
public interface AccountService {


    /**
     * 通过用户名称获取账户
     *
     * @param userId 用户id
     * @return {@link BusinessLeadsAccount}
     */
    BusinessLeadsAccount getAccountByUserId(Long userId);


    /**
     * 业务帐户列表
     *
     * @param pageKeyWordsRequest 参数
     * @return {@link PageResponse}<{@link BusinessLeadsAccount}>
     */
    PageResponse<BusinessLeadsAccount> businessAccountList(PageKeyWordsRequest pageKeyWordsRequest);


    /**
     * 搜索账户
     *
     * @param searchAccountRequest 搜索帐户请求
     * @return {@link PageResponse}<{@link BusinessLeadsAccount}>
     */
    PageResponse<BusinessLeadsAccount> searchAccount(SearchAccountChannelRequest searchAccountRequest);


}
